/*
 * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
 * following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
 * disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
 * following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of
 * the dreamlu.net developer nor the names of its contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission. Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.springblade.core.mp.base.BaseEntity;

import javax.validation.constraints.Pattern;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-06-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("blade_app_version")
@ApiModel(value = "Version对象", description = "Version对象")
public class Version extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 版本号
     */

    @ApiModelProperty(value = "版本号")
    private Long version;
    /**
     * 版本名称
     */
    @Pattern(regexp = "^甘棠政务[0-9]+\\.[0-9]+\\.[0-9]+$")
    @ApiModelProperty(value = "版本名称")
    private String name;
    /**
     * 应用下载地址
     */
    @ApiModelProperty(value = "应用下载地址")
    private String link;
    /**
     * 强制更新 0:不更新，1:更新
     */
    @ApiModelProperty(value = "强制更新 0:不更新，1:更新")
    private Integer forceUpdate;
    /**
     * 描述
     */
    @Length(max = 100)
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    private String type;

    /**
     * 是否静默更新.0不静默,1静默.
     */
    @ApiModelProperty(value = "是否静默更新.0不静默,1静默.")
    private Integer isSilent;
    /**
     * app的业务状态
     */

    @ApiModelProperty(value = "app的业务状态")
    private Long appStatus;
    /**
     * 创建机构
     */

    @ApiModelProperty(value = "创建机构")
    private Long createOrg;
    /**
     * 创建人业务id
     */

    @ApiModelProperty(value = "创建人业务id")
    private Long createUserBusinessId;

}
